﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using units = Paster.Managers.Units;
using _ds = Paster.Shadow.ShadowSettings;
using Styx.WoWInternals;

namespace Paster.Shadow
{
    partial class Rotations
    {
        #region spells
        public const string
            devouringplague = "Devouring Plague",
            mindblast = "Mind Blast",
            mindspike = "Mind Spike",
            mindflay = "Mind Flay",
            powerwordfortitude = "Power Word: Fortitude",
            powerwordshield = "Power Word: Shield",
            shadowworddead = "Shadow Word: Death",
            shadowwordpain = "Shadow Word: Pain",
            smite = "Smite",
            vampirictouch = "Vampiric Touch",
            shadowform = "Shadowform",
            giftofthenaaru = "Gift of the Naaru",
            einde = "einde";

        public static int insanity = 139139;
        #endregion

        public static WoWGuid lastGuid;

        #region healthstone
        public static int healthstonePercent = _ds.myPrefs.HealthstonePercent;
        public static int healthStone = 5512;
        public static bool needHealthstone()
        {
            return Me.HealthPercent <= healthstonePercent;
        }
        #endregion

        
        public static uint orbCount { get { return Me.GetCurrentPower(Styx.WoWPowerType.ShadowOrbs); } }

        public static string lastSpell = string.Empty;

        public static bool CanCast
        {
            get
            {
                if (Me.IsCasting || Me.IsChanneling) return false;
                if (Me.CurrentTarget == null || (Me.CurrentTarget != null && !units.ValidUnit(Me.CurrentTarget))) { return false; }
                return Me.CurrentTarget != null;
            }
        }
        
        
        
    }
}
